package com.atguigu.gulimall.authserver.feign;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.SocialUserVo;
import com.atguigu.gulimall.authserver.vo.UserLoginVo;
import com.atguigu.gulimall.authserver.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author jingchun
 * @create 2024-07-16 16:24
 */

@FeignClient("gulimall-member")
public interface MemberFeignService {
	@PostMapping(value = "/member/member/register")
	R register(@RequestBody UserRegisterVo vo);

	@PostMapping(value = "/member/member/login")
	R login(@RequestBody UserLoginVo vo);

	@PostMapping(value = "/member/member/oauth2/login")
	R oauthLogin(@RequestBody SocialUserVo socialUser) throws Exception;


}
